package com.zzxy.untitled.service.dao.impl;

import com.zzxy.untitled.service.dao.IMemberDao;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.support.JdbcDaoSupport;

public class MemberDaolmpl extends JdbcDaoSupport implements IMemberDao {
//    private JdbcTemplate jdbcTemplate;
//
//    public JdbcTemplate getJdbcTemplate() {
//        return jdbcTemplate;
//    }
//
//    public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
//        this.jdbcTemplate = jdbcTemplate;
//    }

    @Override
    public void addMember() {
        this.getJdbcTemplate().update("update t_user set username = ? where id= ?","rose",2);

    }
}
